package com.lzw.service.impl;

import com.lzw.dao.ClassDao;
import com.lzw.pojo.Cla;
import com.lzw.service.ClaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service("cs")
@Transactional
public class ClaServiceImpl implements ClaService {
    @Autowired
    private ClassDao cd;
    @Override
    @Transactional(propagation = Propagation.SUPPORTS,isolation = Isolation.SERIALIZABLE)
    public List<Cla> getAllCla() {
        return cd.getAllCla();
    }
}
